﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="showuserprofile.aspx.vb" Inherits="bookmeetprototype.showuserprofile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SidebarContent" runat="server">
    <!-- User Profile Page Sidebar -->
<p><hr /><asp:HyperLink runat="server" NavigateUrl="~/browsem.aspx">Go Back to User Search</asp:HyperLink><hr />
</p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <!-- User Profile Page (Not Edit Profile - Show Profile) -->
    <hr />
    <asp:Repeater ID="UserProfileInfo" runat="server">
    <ItemTemplate>
       <div id="wrapper">
    <div id="first">
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "showuserprofile.aspx?ID=" + Eval("ID").ToString() %>' ><asp:Image ID="Image1" CssClass="img-polaroid" Width="170px" NullImageUrl="~/img/no_image.jpg" runat="server" ImageUrl='<%# "~/Account/" + Eval("AvatarURL").toString() %>' /></asp:HyperLink>
        
    </div>
    <div id="second">
        <strong><asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "showuserprofile.aspx?ID=" + Eval("ID").ToString() %>' ><%#Container.DataItem("TravellerName")%></asp:HyperLink></strong>,
        <i><%#Container.DataItem("Location")%></i>, United Kingdom
        <p><small>DOB:&nbsp;<%#DataBinder.Eval(Container.DataItem, "DOB","{0:D}")%></small></p>
        <p><small><%#Container.DataItem("Description")%></small></p>
        </div>
   </div>
    <hr /><h4>About <%#Container.DataItem("TravellerName")%></h4></hr>
        <p><h5>Profession:</h5><small><%#Container.DataItem("Profession")%></small></p>
         <p><h5>Do you smoke?</h5><small><%#Container.DataItem("Smoker")%></small></p>
          <p><h5>Do you drink alcohol?</h5><small><%#Container.DataItem("Drinker")%></small></p>
   <hr />
    </ItemTemplate>
    </asp:Repeater>
    <h4>Book Club Memberships:</h4>
    <p>
        <asp:Repeater ID="bookClubMemberships" runat="server">
        <ItemTemplate>
        <p><strong>Book Club:</strong><%#Container.DataItem("BookClubID")%></p>
        </ItemTemplate>
        </asp:Repeater>
    </p>
</asp:Content>
